<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
    <link rel="stylesheet" type="text/css" href="css/link.css" media="all" />
    <title>所有用户页面</title>
</head>

<body style="background-image: url('css/sss.jpg') ;background-size:100%,100%" >
<center>


<h1>${name}</h1>
<form action="searchServlet" method="post" style="padding-top:-700px;">
    请输入名字：<input type="text" name="name">
    <input type="submit" value="查询" >
</form>
<table  width="600" border="1"  cellpadding="0" >
    <tr>

        <th>姓名</th>
        <th>性别</th>
        <th>密码</th>
        <th>家乡</th>
        <th>备注</th>
        <th>操作</th>
    </tr>
<c:forEach var="U" items="${userAll}"  >
        <form  method="post">
            <tr>
                <td>${U.name}</td>
                <td>${U.sex}</td>
                <td>${U.pwd}</td>
                <td>${U.home}</td>
                <td>${U.info}</td>
             <td><a href="deleteServlet?id=${U.id}" onclick="if(confirm('是否确定删除？')==false)return false">删除</a> <a href="testServlet?id=${U.id}">修改</a>
            </tr>
        </form>
    </c:forEach>
</table></center>
</body>
</html>
